import request from '@/utils/request'

// 查询平台翻译列表
export function listPlatformI18n(query) {
  return request({
    url: '/customer/v1/i18n/platform/page',
    method: 'post',
    data: query
  })
}

// 修改平台翻译
export function updatePlatformI18n(data) {
  return request({
    url: '/customer/v1/i18n/platform',
    method: 'put',
    data: data
  })
}

// 删除平台翻译
export function delPlatformI18n(data) {
  return request({
    url: '/customer/v1/i18n/platform',
    method: 'delete',
    data: data
  })
}

// 导入平台翻译excel
export function importExcelPlatformI18n(data) {
  return request({
    url: '/customer/v1/i18n/platform/import_excel',
    method: 'post',
    data: data
  })
}


// 一键翻译
export function translatePlatformI18n(data) {
  return request({
    url: '/customer/v1/i18n/platform/translate',
    method: 'post',
    data: data
  })
}
